Skip to content

Resolve the 25 Nov design review - #17

Merged
hta218 merged 7 commits into
mainfrom
fix/review
Dec 3, 2026
Merged

hta218 merged 7 commits into
mainfrom
fix/review

Conversation

@hk1682

@hk1682 hk1682 commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

What changed

The three stacked rows now start on the same column. The announcement
bar, the nav and the footer each carried their own copy of the gutters and
they had drifted: the footer stopped widening at lg where the nav carries
on to xl, and the bar was not on the variants at all, sitting on a gutter
of its own that answered to no setting. One definition now lives in
app/components/layout/container.ts.

The newsletter Send button is the theme's Secondary button. It had
bg-[#F1F1E6], text-[#2B2620] and rounded-[12px] hardcoded — which are
the defaults of buttonSecondaryBg, buttonSecondaryColor and
btnCornerRadius. The design was never asking for a one-off; the footer had
copied the token values by hand, so a shop that changed its button colours
changed every button but this one. Figma nodes 1232-25676, 4549-7639,
6964-12199.

Every popup is on a 16px radius. Five panels had four different corners:
rounded (4px), rounded-lg (8px), and two with no radius at all. The
edge-anchored drawers are deliberately untouched — a radius on the side that
meets the viewport edge shows a sliver of page through the corner.

The search field asks a question instead of describing itself.

The main product image paints a loading tile. Every other image
container in the theme already did; this one showed the page background
until the bytes arrived, which on a product page is the largest hole on the
screen.

112px of dead space is gone from the empty cart drawer. The wrapper
already carries space-y-12; the best-sellers block added a Section on
verticalPadding="medium" on top of it. Worth remembering why that was 64px
and not 32px: those breakpoints read the viewport, not the ~400px drawer,
so on a desktop the drawer takes the lg step meant for a full-width page.
/cart is a page, keeps the page rhythm, and is unchanged.

Two points that needed no work

bg-line-subtle on the cart line image and rounded-2xl on the cart
dialogs were both fixed on 18 Nov in 97ec21b2, part of PR #10 (merged
23 Nov). The 27 Nov comment was written against the release/v2026.11.10
deploy, which predates that merge. Nothing to change — flagging it so the
next reader does not "fix" what is already right.

Two fixes that were not code

Both done in Studio, since they are saved per store and no code change can
reach them:

  • footerWidth was Stretch while headerWidth was Fixed, so the footer
    left the nav's column whatever the code said.
  • merchantOverrides.search.placeholder still held the old string. All
    twelve keys in the search group are overridden on that store, and
    overrides beat the theme's staticContent.

Notes for the reviewer

footer.tsx is split across two commits on purpose — it carried two
unrelated review points, and the first two hunks mix them on the same import
lines. The intermediate state typechecks, so each commit stands alone.

Closes #20

The three rows stack directly on top of one another and each carried its
own copy of the gutters to measure its content against. They had drifted.
The footer stopped widening at `lg` where the nav carries on to `xl`, and
its fixed variant held `px-6` where the nav holds `px-10`; the announcement
bar was not on the variants at all, sitting on a `px-5 md:px-8 xl:px-10` of
its own that answered to no setting. So on a wide viewport the bar, the logo
and the footer's first column each began at a different place.

One definition now, in `container.ts`, with `padding` for the full-bleed
element that paints the row's background and `width` for the content inside
it — separate variants rather than one class list because they go on
different elements.

The announcement bar reads `headerWidth` rather than gaining a setting of
its own. It has no width of its own to speak of: it sits above the nav and
what a merchant means by moving the nav to Stretch is that the top of the
page is wider, not that the nav alone is.

Note that `footerWidth` and `headerWidth` are still two settings, and a
shop that has set them differently will still see the footer leave the nav's
column — that is the merchant's choice to make in Studio now rather than
something the code decides for them.
The button was its own thing: `bg-[#F1F1E6]`, `text-[#2B2620]` and a
`rounded-[12px]` hardcoded beside it, none of which a merchant can reach.
Those three literals are the defaults of `buttonSecondaryBg`,
`buttonSecondaryColor` and `btnCornerRadius` — the design was never asking
for a one-off, it was asking for the Secondary button, and the footer had
reproduced its December values by hand. A shop that changes its button
colours changed every button but this one.

It takes the `secondary` variant now, so the settings reach it like they
reach the rest. The variant's `py-[18px]` puts it at 50px against the 48px
field, which is the height all three frames draw, and the row centres them.

`leading-none` is restated on top of the variant: Tailwind v4's `text-sm`
carries a line height of its own, and tailwind-merge drops the earlier
`leading-none` when it sees one. Without it the button renders 56px — the
class list reads as though it were still 50.

The traced arrow goes. Its path scaled by 14/256 is Phosphor's regular
`ArrowRight` to the decimal, so the design is drawing the glyph the project
already ships; a second hand-rolled copy of it in this file could only
drift from the Phosphor one. The mail icon beside it stays traced — that
one really is a stroked path with no Phosphor equivalent — and its comment
now says which of the two is which, since the file no longer treats them
the same way.

Content width at every breakpoint, 107px in all three frames. The narrow
frame stacks the button under the field rather than stretching it, which is
what the column's `items-start` was already giving it once `w-full sm:w-auto`
came off.
Five panels, five different corners. The sort popover was on `rounded`
(4px), the nav dropdown and the volume pricing panel on `rounded-lg`
(8px), and the country selector and the account modal had no radius at all
— square corners on a panel floating over the page. The design draws one
radius for all of them.

`rounded-2xl` rather than a token: these are popups, not buttons, and
`--btn-border-radius` is the merchant's button setting. Tying a floating
panel to it would make the sort popover change shape when a shop squares
off its Add to cart.

The drawers are deliberately left alone. The cart drawer, the mobile menu,
the search panel, the filter tray and the media zoom are anchored to an
edge of the viewport or fill it, so a radius on the side that touches the
edge would show a sliver of page through the corner.
"Search our store..." describes the field to someone who can already see
it sitting under a magnifying glass. The design puts the question instead.

A caveat worth recording: this is the theme's `staticContent`, which a
store's saved `merchantOverrides` sits on top of. Any shop that has ever
edited this string in Studio keeps what it saved and will not see this
change — on the review store, all twelve `search` keys are overridden, so
the old placeholder is still what renders there. The default is right now;
clearing the override is a Studio job.
Every other image container in the theme paints `bg-line-subtle` behind
itself, so a slow image leaves a tile the right shape and the layout holds
still. The main product media was the one that did not: it showed the page
background until the bytes arrived, which on a product page is the largest
hole on the screen and the first thing in the viewport.

The thumbnails below it already had the tile, which made the gap easy to
miss in the editor and obvious on a cold load.
112px of nothing sat between Start Shopping and the Shop Best Sellers
heading. Two things added up to it. The wrapper already carries
`space-y-12`, which is the 48px gap the drawer wants, and the best-sellers
block sat in a `Section` on `verticalPadding="medium"` — `py-8 md:py-12
lg:py-16` — which added its own on top.

The second half is the part worth remembering: those breakpoints read the
viewport, not the drawer. The drawer is about 400px wide, so by its own
measure it is a phone, but on a desktop it takes the `lg` step and gets the
64px meant for a full-width page.

So the drawer keeps the wrapper's 48px and the `Section` contributes
nothing. `/cart` is a page, takes the page rhythm, and is unchanged — it
still emits the one `py-8 md:py-12 lg:py-16` it had.

Verified by reading the classes rather than the pixels: the drawer's
content is portal-rendered only while it is open, so it never appears in
the server HTML, and the review store's cart has lines in it.
@hk1682
hk1682 requested a review from hta218 December 3, 2026 08:40
@hk1682 hk1682 added the enhancement New feature or request label Dec 3, 2026

@hta218 hta218 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One visual issue remains in the popup-radius fix: the volume-pricing panel does not clip its row backgrounds to the new corners. Please address the inline comment before closing the design review.

Validation: npm run check and npm run typecheck passed; CI Verify passed. The corner issue was reproduced with an isolated Chromium CSS probe. Full storefront and Figma visual comparison, and the reported Studio changes, were not verified.

}

const VOLUME_PRICING_PANEL = "bg-white text-body shadow-lg rounded-lg p-0";
const VOLUME_PRICING_PANEL = "bg-white text-body shadow-lg rounded-2xl p-0";

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P3] Clip the pricing rows to the panel's rounded corners

With 1, 3 or 5 pricing rows, the last row receives odd:bg-line-subtle and paints over the panel's bottom corners. rounded-2xl rounds the panel background but does not clip its children, so the bottom corners remain square in both the desktop tooltip and the touch popover. This leaves the radius fix incomplete.

Please add overflow-hidden to VOLUME_PRICING_PANEL so both presentations clip their row backgrounds to the 16px radius. Confirmed with an isolated Chromium CSS probe.

@hta218 hta218 linked an issue Dec 3, 2026 that may be closed by this pull request
16 tasks
The panel took the 16px radius but not the clip, so the bottom corners went
on rendering square. `border-radius` bounds an element's own background and
border; a child's background runs straight through the corner unless
something clips it.

The rows do run through it. The panel is on `p-0` so each `<li>` spans its
full width, and `odd:bg-line-subtle` fills the last one whenever the count
is odd. Odd count means an even number of price breaks — zero included — so
the variant with no breaks at all, a single striped row, is the one that
shows it most plainly.

Both presentations, since the tooltip and the touch popover share this
class list.

The bug predates the radius change: at `rounded-lg` the square millimetre
in each corner was not worth noticing, and at 16px it is. Raised in review
on #17.

@hta218 hta218 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed d2b920e. The shared volume-pricing panel now clips row backgrounds to its 16px corners. An isolated Chromium probe using the actual Tailwind classes passed for 1–5 rows and reproduced the previous failure when overflow-hidden was removed. CI Verify passes. No remaining code-review findings. Full storefront/Figma visual acceptance and the reported Studio settings remain outside this verification.

@hta218
hta218 merged commit ac6a0af into main Dec 3, 2026
1 check passed
@hta218
hta218 deleted the fix/review branch December 3, 2026 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Resolve the November 25 Maison design review findings

2 participants